<template>
    <el-select v-model="mz" @change="onSelectChange">
        <el-option v-for="item in d" :key="item.value" :label="item.value" :value="item.value"></el-option>
    </el-select>
</template>

<script>
    export default {
        name: "MZ",
        props: {
            value:{
                type:String,
            }
        },



        data(){
            return {
                mz:this.value,
                d: [{value: '汉族'}, {value: '蒙古族'}, {value: '回族'}, {value: '藏族'}, {value: '维吾尔族'}, {value: '苗族'}, {value: '彝族'}, {value: '壮族'}, {value: '布依族'}, {value: '朝鲜族'}, {value: '满族'}, {value: '侗族'}, {value: '瑶族'}, {value: '白族'}, {value: '土家族'}, {value: '哈尼族'}, {value: '哈萨克族'}, {value: '傣族'}, {value: '黎族'}, {value: '傈僳族'}, {value: '佤族'}, {value: '畲族'}, {value: '高山族'}, {value: '拉祜族'}, {value: '水族'}, {value: '东乡族'}, {value: '纳西族'}, {value: '景颇族'}, {value: '柯尔克孜族'}, {value: '土族'}, {value: '达斡尔族'}, {value: '仫佬族'}, {value: '羌族'}, {value: '布朗族'}, {value: '撒拉族'}, {value: '毛难族'}, {value: '仡佬族'}, {value: '锡伯族'}, {value: '阿昌族'}, {value: '普米族'}, {value: '塔吉克族'}, {value: '怒族'}, {value: '乌孜别克族'}, {value: '俄罗斯族'}, {value: '鄂温克族'}, {value: '崩龙族'}, {value: '保安族'}, {value: '裕固族'}, {value: '京族'}, {value: '塔塔尔族'}, {value: '独龙族'}, {value: '鄂伦春族'}, {value: '赫哲族'}, {value: '门巴族'}, {value: '珞巴族'}, {value: '基诺族'}]
            }
        },

        methods:{
            onSelectChange(v){
                this.$emit('updatemz',v)
            }
        }
    }
</script>

<style scoped>

</style>